<template>
  <van-nav-bar
    title="视频号"
    left-text="返回"
    fixed
    left-arrow
    @click-left="onClickLeft"
  />
  <VideoPlayer
    :videoSrc="currentVideo.src"
  />
</template>

<script setup>
import { ref,computed } from 'vue';
import VideoPlayer from '@/components/VideoPlayer.vue';

// 视频列表
const videos = ref([
  {
    src: 'http://47.107.242.59:9000/video/2025/02/04/a8dcdd2b-36f9-4e6d-bde1-abaaa4d32f24-游戏引擎开发.mp4',
    title: '视频 1',
    description: '这是第一个视频',
  }
]);
const onClickLeft = () => history.back();
// 当前视频索引
const currentIndex = ref(0);
// 当前视频
const currentVideo = computed(() => videos.value[currentIndex.value]);

</script>

<style>

</style>
